home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 2).iso / 0297 / install.dat < prev    next >
Encoding:
INSTALL Professional project  |  1997-03-31  |  35.8 KB  |  1,125 lines

  1. /*
  2.       INSTALL.DAT  Copyright 1994-1997 David Berman Developments Inc.
  3.  
  4.       This is the INSTALL.DAT script file for installing TimeWise Light from a download.
  5.  
  6.         To install TimeWise Light, type INSTALL at the DOS prompt or at the
  7.         Windows Run command (from the File menu). */
  8.  
  9.  
  10. /* set defaults: product name, major version number, default destination drive,
  11.    default directory, default group of things to install, @immediate means execute
  12.    instructions immediately, @requires @harddisk means install won't run if hard disk
  13.    not present, @verify means verify files while copying, @indiskbell means beep when
  14.    prompting for next disk */
  15.  
  16. @DefineProject
  17.     @Name           = "TimeWise Light"
  18.     @Version        = "5"
  19.     @OutDrive       = C
  20.     @Subdir         = "TimeWise"
  21.     @Group          = "A"
  22.     @Immediate = 1
  23.     @Requires @HardDisk
  24.     @Verify
  25.     @InDiskBell     = @TRUE
  26. @EndProject
  27.  
  28.  
  29. @DefineVars
  30.     @QString @Launch ="No"
  31.     @QString @Replace ="Yes"
  32.     @QString @Modify ="Yes"
  33.     @QString @OldVersion ="0"
  34.  
  35.     @Integer @Exam       = 150
  36.     @Integer @Util       = 175
  37.     @Integer @Isrc       = 1300
  38.     @Integer @Wsrc       = 3100
  39.     @Integer @DDB        = 200
  40.     @Integer @Help       = 700
  41.     @Integer @TSIZE      = @Eval(@Exam+@Util+@Isrc+@Wsrc+@DDB+@help+475)
  42.     @Integer @Red        = @RGB(255,0,0)             //DEFINE COLOR RED
  43.     @Integer @Green      = @RGB(0,255,0)             //DEFINE COLOR GREEN
  44.     @Integer @Blue       = @RGB(0,0,255)             //DEFINE COLOR BLUE
  45.     @Integer @Black      = @RGB(0,0,0)               //DEFINE COLOR BLACK
  46.     @Integer @V               = @VideoCard
  47. @If(@Platform != 3)
  48.     @Qstring @TTEnable   = "N/A"
  49.     @Qstring @DiskAccess = "N/A"
  50.     @Qstring @MDriver    = "N/A"
  51.     @Qstring @NetDriver  = "N/A"
  52.     @Qstring @DispDriver = "N/A"
  53.     @Qstring @WinShell   = "N/A"
  54.     @Qstring @WallPaper  = "N/A"
  55.     @Qstring @PSwapFile  = "N/A"
  56.     @Qstring @PSwapSize  = "N/A"
  57. @Else
  58.     @Qstring @TTEnable   = "@GetINI("TrueType","TTEnable")"
  59.     @Qstring @DiskAccess = "@GetINI("386enh","32BitDiskAccess","system.ini")"
  60.     @Qstring @MDriver    = "@GetINI("boot.description","mouse.drv","system.ini")"
  61.     @Qstring @NetDriver  = "@GetINI("boot","network.drv","system.ini")"
  62.     @Qstring @DispDriver = "@GetINI("boot","display.drv","system.ini")"
  63.     @Qstring @WinShell   = "@GetINI("boot","shell","system.ini")"
  64.     @Qstring @WallPaper  = "@GetINI("desktop","wallpaper")"
  65.     @Qstring @PSwapFile  = "@GetINI("386Enh","PermSwapDOSDrive","system.ini")"
  66.     @Qstring @PSwapSize  = "@GetINI("386Enh","PermSwapSizeK","system.ini")"
  67. @EndIf
  68. @EndVars
  69.  
  70. @BackgroundMode(3,@Blue,@Black)
  71.  
  72. @Display
  73.   I N S T A L L
  74.         TimeWise Light Install / Uninstall Program
  75.         (c) 1997 David Berman Developments Inc.
  76.                     @pause
  77.     @cls
  78.     --------------------------------------------------------------------------------------------------
  79.     INSTALL: INSTALLATION PROGRAM FOR TIMEWISE LIGHT
  80.     --------------------------------------------------------------------------------------------------
  81.  
  82.     This program installs TimeWise Light on your computer,
  83.     while verifying the integrity of all files.
  84.  
  85.     You can click Cancel or press the Esc key at any time to stop.
  86.  
  87.     INSTALL also gives you the choice of installing only selected portions
  88.     of TimeWise Light, or to remove it from your computer.
  89.  
  90.     Each question has a suggested answer. If the suggested answer is
  91.     appropriate, click OK or press the Enter key to accept.
  92.  
  93.  
  94.  
  95.                     @pause
  96. @EndDisplay
  97.  
  98.  
  99. @Display
  100. @LocalWindow(10,40)
  101.     @cls
  102.     --------------------------------------------------------------------------------------------------
  103.     TIMEWISE LIGHT INSTALL: DISCLAIMER
  104.     --------------------------------------------------------------------------------------------------
  105.  
  106.     This software is provided 'as is' without express or implied warranty.
  107.     The publisher disclaims any warranties of merchantability or fitness for purpose.
  108.     In no event will David Berman Developments Inc. be liable for damages, including
  109.     but not limited to lost profits or savings,
  110.     incidental or consequential damages resulting from lost data, software
  111.     or computer failure, or for any other claim by any party.
  112.  
  113.     If you accept these terms, click OK or press the Enter key.
  114.     If you do not accept these terms, click Cancel or press the Esc key.
  115.  
  116.  
  117.  
  118.                     @pause
  119. @EndDisplay
  120.  
  121.  
  122. @Display
  123.  
  124. @LocalWindow(10,40)
  125.     @Cls
  126.     --------------------------------------------------------------------
  127.     YOUR COMPUTER CONFIGURATION
  128.     --------------------------------------------------------------------
  129.     INSTALL has detected that your computer has these attributes:
  130.     Conventional memory installed:  @RAMTotal /*  Available:  @RAMAvail */
  131.     Extended memory installed:     @ExtTotal  /* Available: @ExtAvail */
  132.     Expanded memory installed:     @EMMTotal  /* Available: @EMMAvail */
  133.     Processor: @CPU starting up from drive @BootDrive.
  134. @If (@VideoMonitor == 'M')     Display: Monochrome monitor.
  135. @ElseIf (@VideoMonitor == 'C')     Display: Colour monitor with @VideoRAM@!K of RAM.
  136. @Else
  137.     Display: EGA or VGA monitor with at least @VideoRAM@!K of RAM.
  138. @EndIf
  139. @If (@NDP != 0)    Math co-processor installed.
  140. @EndIf
  141. @If (@NetBIOS != 0)    This computer appears to be attached to a network.
  142. @EndIf                                     @pause
  143.  
  144. @EndDisplay
  145. TRYAGAIN:
  146. @GetOutDrive
  147.    @If(@Platform == 3)
  148.     @DlgCtrlSize(0,7,4,14,15)
  149.    @Else
  150.     @LocalWindow(10,40)
  151.    @EndIf
  152.  
  153.    @Suppress A
  154.    @Suppress B
  155.    @Cls
  156.     --------------------------------------------------------------------
  157.     CHOOSE THE DESTINATION DRIVE
  158.     --------------------------------------------------------------------
  159.  
  160.     Onto which hard drive do you wish to install?
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.     Choose which hard disk to install onto (or the drive on which TimeWise
  172.     is already installed). If unsure, press Enter or double-click Drive C.
  173.  
  174.     Select the disk of your choice, then click OK or press the Enter key.
  175. @Prompt=" Which drive? "
  176. @EndOutDrive
  177.  
  178. @GetGroups
  179.  
  180.    @If(@Platform == 3)
  181.     @DlgCtrlSize(0,7,4,11,35)
  182.    @Else
  183.     @LocalWindow(9,40)
  184.    @EndIf
  185.  
  186.    @Cls
  187.     --------------------------------------------------------------------
  188.     INSTALLATION TYPE
  189.     --------------------------------------------------------------------
  190.  
  191.     On this screen, specify what kind of installation you wish to do.
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.     Custom Install lets you specify which files you want to install and
  199.     in which directory they will be installed or uninstalled.
  200.  
  201.     Choose Express Install if you have doubts about what to do. Express
  202.     Install uses directory TimeWise, and no samples or templates.
  203.  
  204. /*    Network Install installs TimeWise as a network application.
  205. */
  206.     Move the bar with the mouse or arrow keys. Press Enter or
  207.     click OK when pleased with your selection. Press Esc to quit.
  208.  
  209.     @Set Z = "Custom Install"
  210.     @Set B = "Express Install"
  211. /*    @Set T = "Network Install (onto drive @OutDrive)" */
  212. @EndGroups
  213.  
  214.  
  215. @Display
  216.    @CLS
  217.     --------------------------------------------------------------------
  218.     AVAILABLE DISK SPACE ON DRIVE @OutDrive
  219.     --------------------------------------------------------------------
  220.  
  221.     @If (@DiskSize @OutDrive <5000000)
  222.     Disk drive @OutDrive is too small to hold TimeWise Light, no matter how
  223.     much disk space is free. Run INSTALL again, specifying a larger disk.
  224.                     @pause
  225.         @GoTo TRYAGAIN
  226.     @EndIf
  227.  
  228.     @If (@DiskFree @OutDrive <5000000)
  229.     Disk drive @OutDrive only has @DiskFree @OutDrive bytes of space free.
  230.  
  231.     TimeWise Light requires at least 5,000,000 bytes of free disk space.
  232.     CANCEL INSTALL, FREE UP MORE DISK SPACE, THEN RUN INSTALL AGAIN.
  233.  
  234.                     @pause
  235.         @Exit
  236.     @ElseIf (@DiskFree @OutDrive <7000000)
  237.     Disk drive @OutDrive has @DiskFree @OutDrive bytes of space free.
  238.  
  239.     While this is enough space to install TimeWise Light, you may have to
  240.     free up about 3,000,000 more bytes (3 megabytes) of space to launch
  241.     TimeWise Light after the program is installed.
  242.  
  243.                     @pause
  244.         @Cls
  245.     @Else
  246.     The selected disk has @DiskFree @OutDrive bytes of free space,
  247.     which will suit TimeWise Light just fine.
  248.  
  249.                     @pause
  250.         @EndIf
  251.  
  252. @If (@Exists "@OutDrive:\\ART\\ART.BAT")
  253.     @Subdir = "ART"
  254. @EndIf
  255.  
  256. @EndDisplay
  257.  
  258.  
  259. /*  If they chose Express Install above, Group B was turned on. This results in the following
  260. IF skipping the next series of screens, thus defaulting to drive C, directory TimeWise,
  261. no sample data, no setup template, no chance to uninstall, no startup group */
  262.  
  263.  
  264. @If ('B' [! @Group)
  265.  
  266.   @GetSubdir
  267.     @Cls
  268.     --------------------------------------------------------------------
  269.     CHOOSE THE DESTINATION DIRECTORY
  270.     --------------------------------------------------------------------
  271.  
  272.     Now specify the destination directory. This is the location on the
  273.     hard disk where TimeWise Light will be installed (or is already installed).
  274.     If you don't know what a "directory" is, you probably need not worry
  275.     about it, and should accept the suggestion of " @SubDir" by pressing
  276.     the Enter key or clicking on the OK button.
  277.  
  278.     @LocalWindow(12,49)
  279.     @Prompt = " Which directory? (Press Enter or click OK for @Subdir) "
  280.   @EndSubdir
  281.  
  282.   @If (@Exists "OutDrive:\\@Subdir")
  283.     @Copy("OutDrive:\\@Subdir","OutDrive:\\@Subdir.$$$")
  284.     @Delete("OutDrive:\\@Subdir")
  285.     @Display
  286.     The existing file @Subdir has been renamed @Subdir.$$$.
  287.                     @pause
  288.   @EndIf
  289.  
  290.   @Display
  291. /* If the file STUDIO.DBF exists, we can assume they are upgrading */
  292.   @If (@Exists "@OutDrive:\\@Subdir\\STUDIO.DBF")
  293.     @OldVersion = "3"
  294.     @cls
  295.     --------------------------------------------------------------------
  296.     EXISTING INSTALLATION DETECTED
  297.     --------------------------------------------------------------------
  298.  
  299.     A version of TimeWise or TimeWise Light is already
  300.     installed in directory @Subdir on Drive @OutDrive.
  301.  
  302.     If you continue to install this new version, the existing
  303.     version will be replaced by TimeWise Light version @Version.
  304.  
  305.     Existing TimeWise Light information is safe: it will not be
  306.     altered or overwritten unless you insist.
  307.     IF OVERWRITING TIMEWISE, SOME FEATURES WILL BE LOST!
  308.  
  309.                     @pause
  310.  
  311.     Please wait while I make a backup copy of existing program files...
  312.  
  313.     @Copy("@OutDrive:\\@SubDir\\timeww.exe","@OutDrive:\\@SubDir\\timeww.old")
  314.     @Copy("@OutDrive:\\@SubDir\\config.fpw","@OutDrive:\\@SubDir\\config.bkw")
  315.     @Copy("@OutDrive:\\@SubDir\\*.lbx","@OutDrive:\\@SubDir\\*.bkx")
  316.     @Copy("@OutDrive:\\@SubDir\\*.lbt","@OutDrive:\\@SubDir\\*.bkt")
  317.   @EndIf
  318.   @EndDisplay
  319.  
  320.  
  321.   @GetOption
  322.  
  323.  
  324.    @If(@Platform == 3)
  325.     @DlgCtrlSize(0,8,4,11,47)
  326.    @Else
  327.     @LocalWindow(9,40)
  328.    @EndIf
  329.  
  330.    @Cls
  331.     --------------------------------------------------------------------
  332.     PROCEED?
  333.     --------------------------------------------------------------------
  334.  
  335.     Do you wish to proceed with installation on directory @Subdir
  336.     of Drive @OutDrive?
  337.  
  338.  
  339.  
  340.  
  341.  
  342.     Move the bar with the UpArrow and DownArrow keys.
  343.     Press Enter or click OK when pleased with your choice.
  344.   @Option 1= "Yes. Proceed with directory @OutDrive:@!@Subdir."
  345.   @Option 2= "No. Cancel INSTALL."
  346.   @Prompt=" Proceed? "
  347.   @EndOption
  348.  
  349.     @If(2 [= @Option)
  350.  
  351.     @Display
  352.     @Cls
  353.  
  354.     Installation terminated by you.
  355.                     @Pause
  356.     @Exit
  357.     @EndDisplay
  358.     @EndIf
  359.  
  360.  
  361.   @GetGroups
  362.  
  363.    @If(@Platform == 3)
  364.     @DlgCtrlSize(0,7,4,12,64)
  365.    @Else
  366.     @LocalWindow(9,40)
  367.    @EndIf
  368.  
  369.    @Cls
  370.     ---------------------------------------------------------------------------
  371.     CHOOSE WHAT TO INSTALL (OR UNINSTALL)
  372.     ---------------------------------------------------------------------------
  373.  
  374.     Select the TimeWise Light configuration you wish to install (or uninstall).
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386. /*    If you don't have a TimeSave for Windows disk, don't choose to install it!.
  387. */
  388.     Move the bar with the UpArrow and DownArrow keys.
  389.     Press Enter or click OK when pleased with your choice, or Esc to quit.
  390.      @Set B = "Install or upgrade TimeWise Light."
  391. /*     @Set X = "Install or upgrade TimeSave for Windows as well."        */
  392.      @Set Z = "Do not install TimeWise Light program files (just information)."
  393.      @Set U = "Uninstall all products from this directory. Delete everything."
  394.   @Prompt=" Choose which Products to Install "
  395.   @EndGroups
  396.  
  397.  
  398.  
  399.   @If ('U' [= @Group)
  400.  
  401.    @GetOption
  402.  
  403.  
  404.    @If(@Platform == 3)
  405.     @DlgCtrlSize(0,10,4,13,70)
  406.    @Else
  407.     @LocalWindow(10,40)
  408.    @EndIf
  409.  
  410.    @Cls
  411.     --------------------------------------------------------------------
  412.     PROCEED WITH UNINSTALL?
  413.     --------------------------------------------------------------------
  414.  
  415.     You have requested to remove all TimeWise products from directory @Subdir
  416.     of Drive @OutDrive. THIS WILL ERASE ALL FILES! Are you absolutely
  417.     sure this is what you want to do?
  418.  
  419.  
  420.  
  421.  
  422.  
  423.     Move the bar with the UpArrow and DownArrow keys.
  424.     Press Enter or click OK when pleased with your choice.
  425.    @Option 2= "No. Cancel INSTALL."
  426.    @Option 1= "Yes. Remove everything from @OutDrive:@!@Subdir. Delete all files!"
  427.    @Prompt=" Are You Sure about Uninstalling? "
  428.    @EndOption
  429.  
  430.     @If(2 [= @Option)
  431.  
  432.     @Display
  433.     @Cls
  434.  
  435.     Installation terminated by you. TimeWise has NOT been removed.
  436.  
  437.     @Exit
  438.     @EndDisplay
  439.     @EndIf
  440. /* remove all readonly attributes before trying to delete files */
  441.    @ChMod("@OutDrive:\\@SubDir\\*.*","r-")
  442.    @Delete("@OutDrive:\\@SubDir\\*.*")
  443.    @Delete("@OutDrive:\\@SubDir\\INVOICE\\*.*")
  444.    @Delete("@OutDrive:\\@SubDir\\ORIGINAL\\*.*")
  445.    @Delete("@OutDrive:\\@SubDir\\SAMPLES\\*.*")
  446.    @RmDir("@OutDrive:\\@SubDir\\INVOICE")
  447.    @RmDir("@OutDrive:\\@SubDir\\ORIGINAL")
  448.    @RmDir("@OutDrive:\\@SubDir\\SAMPLES")
  449. /* we purposely do not delete the files in \SBT as they may need them for SBT...the attempt
  450.    to remove the SBT directory will intentionally fail without notice if there are any files there. */
  451.    @RmDir("@OutDrive:\\@SubDir\\SBT")
  452.    @RmDir("@OutDrive:\\@SubDir")
  453.    @Display
  454.     --------------------------------------------------------------------
  455.     TIMEWISE SUCCESSFULLY UNINSTALLED
  456.     --------------------------------------------------------------------
  457.  
  458.  
  459.     All files in the directory @SubDir of drive @OutDrive have been
  460.     deleted, and the directory @SubDir and all its subdirectories have
  461.     been removed, if possible.
  462.  
  463.        Changes made to AUTOEXEC.BAT and CONFIG.SYS by INSTALL have NOT been
  464.        restored. You must do this by hand.
  465.  
  466.        If data existed in the SBT subdirectory, it is intact.
  467.  
  468.  
  469.                     @Pause
  470.    @EndDisplay
  471.    @Exit
  472.   @EndIf
  473.  
  474.   @GetOption
  475.  
  476.  
  477.    @If(@Platform == 3)
  478.     @DlgCtrlSize(0,9,4,12,56)
  479.    @Else
  480.     @LocalWindow(11,40)
  481.    @EndIf
  482.  
  483.    @Cls
  484.     --------------------------------------------------------------------
  485.     INSTALL A SETUP TEMPLATE?
  486.     --------------------------------------------------------------------
  487.  
  488.     Setup templates allow you to structure your TimeWise setup based on
  489.     the setup of a typical organization in your industry, rather than
  490.     having to customize and set preferences from scratch.
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.     IF UPGRADING, DO NOT INSTALL A SETUP TEMPLATE UNLESS YOU
  498.     WISH TO OVERWRITE ALL OF THE CUSTOMIZING AND PREFERENCES
  499.     YOU HAVE ALREADY ESTABLISHED!!!
  500.  
  501.  
  502.  
  503.     Move the bar with the UpArrow and DownArrow keys.
  504.     Press Enter or click OK when pleased with your choice.
  505.   @Option 1= "No. Do not install a Setup Template."
  506.   @Option 2= "Yes. Let me choose from a list of Setup Templates."
  507.   @Prompt=" Choose a Setup Template? "
  508.   @EndOption
  509.  
  510.   @If(2 [= @Option)
  511.  
  512.   @GetGroups
  513.  
  514.  
  515.    @If(@Platform == 3)
  516.     @DlgCtrlSize(0,9,4,15,65)
  517.    @Else
  518.     @LocalWindow(15,40)
  519.    @EndIf
  520.    @Cls
  521.     --------------------------------------------------------------------
  522.     SETUP TEMPLATE MENU
  523.     --------------------------------------------------------------------
  524.  
  525.     Select the Setup Template that resembles your organization. If you
  526.     don't choose one, you can design your own in TimeWise.
  527.     IF UPGRADING, DO NOT INSTALL A SETUP TEMPLATE!
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.     Move the bar with the UpArrow and DownArrow keys.
  541.     Press Enter or click OK when pleased with your choice.
  542.     @Set Z = "Do not install a setup template."
  543.     @Set D = "Install the setup template for design / publishing firms."
  544.     @Set E = "Install the setup template for advertising agencies."
  545.     @Set F = "Install the setup template for service bureaus."
  546.     @Set J = "Install the setup template for commercial printers."
  547.     @Set H = "Install the setup template for quick printers."
  548.     @Set I = "Install the setup template for screen printers."
  549.     @Set G = "Install the setup template for software developers."
  550.     @Set K = "Install the setup template for photographers and labs."
  551.   @Prompt=" Choose a Setup Template "
  552.   @EndGroups
  553.   @EndIf
  554.  
  555.   @GetGroups
  556. /* The GetGroups command captures there selection of a "Set" for later processing of which files to install */
  557.  
  558.    @If(@Platform == 3)
  559.     @DlgCtrlSize(0,7,4,10,44)
  560.    @Else
  561.     @LocalWindow(8,40)
  562.    @EndIf
  563.  
  564.    @Cls
  565.     --------------------------------------------------------------------
  566.     SAMPLE INFORMATION
  567.     --------------------------------------------------------------------
  568.  
  569.     If you wish to install the sample information, choose to do so now.
  570.  
  571.  
  572.  
  573.  
  574.  
  575.     Sample information will help you understand TimeWise by allowing you
  576.     to play with the program using job history from a fictitious company.
  577.     The sample information will work with any setup template. Once you
  578.     have played with it, you will want to discard the sample information
  579.     before you begin to use TimeWise for your organization. The sample
  580.     information will be discarded at your convenience using a feature
  581.     found in TimeWise (the Load command from the Setup menu).
  582.  
  583.  
  584.     Move the bar with the UpArrow and DownArrow keys.
  585.     Press Enter or click OK when pleased with your selection.
  586.     @Set P = "No. Do not install sample information."
  587.     @Set W = "Yes. Install sample information."
  588.   @Prompt=" Install Sample Information? "
  589.   @EndGroups
  590.  
  591. /*The automatic launch section should result in putting TimeWise in the Startup Group*/
  592.  
  593. /*  @GetGroups
  594.  
  595.    @If(@Platform == 3)
  596.     @DlgCtrlSize(0,9,4,12,56)
  597.    @Else
  598.     @LocalWindow(9,40)
  599.    @EndIf
  600.  
  601.    @Cls
  602.     --------------------------------------------------------------------
  603.     AUTOMATIC LAUNCH
  604.     --------------------------------------------------------------------
  605.  
  606.     Do you wish TiemWise Light to automatically launch when the computer is
  607.     turned on?
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.     The AUTOEXEC.BAT file of this computer can be modified so that
  615.     TimeWise Light automatically launches when the computer is turned on.
  616.     This is convenient if you use the computer mainly or exclusively with
  617.     TimeWise.
  618.  
  619.  
  620.  
  621.     Move the bar with the UpArrow and DownArrow keys.
  622.     Press Enter or click OK when pleased with your choice.
  623.     @Set N= "No. Do not automatically launch TimeWise Light."
  624.     @Set Y= "Yes. Automatically launch TimeWise Light when the computer is turned on."
  625.   @Prompt=" Automatic Launch? "
  626.   @EndGroups  */
  627.  
  628. @EndIf  /*  This EndIf is for Express Install */
  629.  
  630. @Display
  631. @Cls
  632.     --------------------------------------------------------------------
  633.     PREPARING FOR INSTALLATION
  634.     --------------------------------------------------------------------
  635.  
  636.     Please wait while INSTALL prepares the computer for installation.
  637.  
  638.     Now is a good time to fill in your registration card and send it in.
  639.  
  640. @EndDisplay
  641.  
  642. @Display
  643.  
  644.     Clearing read-only attributes...
  645. @EndDisplay
  646.   @ChMod("@OutDrive:\\@SubDir\\*.*","r-")
  647.  
  648. @Display
  649.     Deleting temporary files...
  650. @EndDisplay
  651. /* temporary files left over from the last time install was run are deleted... */
  652.   @Delete("@OutDrive:\\@SubDir\\assign1.*")
  653.   @Delete("@OutDrive:\\@SubDir\\clients1.*")
  654.   @Delete("@OutDrive:\\@SubDir\\newusert.*")
  655.   @Delete("@OutDrive:\\@SubDir\\*.tmp")
  656. /* multi.dbf is deleted to be doubly sure it will be overwritten  */
  657.   @Delete("@OutDrive:\\@SubDir\\multi.dbf")
  658.  
  659. @Display
  660.     Creating Directory @OutDrive:\\@SubDir if it doesn't yet exist...
  661.   @MkDir("@OutDrive:\\@SubDir")
  662. /* Create mandatory subdirectories if they don't already exists. */
  663.   @MkDir("@OutDrive:\\@SubDir\\Invoice")
  664.   @MkDir("@OutDrive:\\@SubDir\\SBT")
  665.   @MkDir("@OutDrive:\\@SubDir\\Samples")
  666.   @MkDir("@OutDrive:\\@SubDir\\Original")
  667.  
  668. @EndDisplay
  669.  
  670. @Display
  671.     Creating custom batch files...
  672. @EndDisplay
  673. /*
  674.   @Write("@OutDrive:\\@Subdir\\tww.bat", "wt", "@@echo off\n")
  675.   @Write( , , "cls\n")
  676.   @Write( , , "@OutDrive:\n")
  677.   @Write( , , "cd\\@Subdir\n")
  678.  
  679.   @Write("@OutDrive:\\@Subdir\\tsw.bat", "wt", "@@echo off\n")
  680.   @Write( , , "cls\n")
  681.   @Write( , , "@OutDrive:\n")
  682.   @Write( , , "cd\\@Subdir\n")
  683. */
  684.  
  685. @DefineDisk
  686. @Label="TimeWise Light for Windows Disk 1"
  687.  
  688. /* The Group parameter indicates which groups need to be turned on for this file to be installed
  689.    BX results in the file always being installed unless they selected Do Not Install Any Program Files, since B is Express Setup or Install Or Upgrade TimeWise
  690.    and X is if they chose Install Or Upgrade TimeSave too. */
  691.  
  692. @File MULTI.DBF    @Group BX
  693. /* @File TWW.BAT      @AppendTo TWW.BAT
  694.    @File TSW.BAT      @AppendTo TSW.BAT
  695. */
  696.  
  697. /* BeginLib indicates the beginning of a clause where files are referred to that are contained
  698.    in a compressed file */
  699.  
  700. @BeginLib TIMEWW.RED
  701.  @File *.*         @Group BX
  702. @EndLib
  703.  
  704. @If (@Exists "@OutDrive:\\SubDir\\TIMESW.EXE")
  705.    @BeginLib TIMEWW.RED
  706. /* If TIMESW.EXE exists, it means they have a TimeSave license, so we upgrade their TimeSave as well,
  707.    even though they didn't have a TimeSave for Windows disk. We do this to avoid having to ship a
  708.    TimeSave for Windows disk every time we upgrade TimeWise. The next line causes TIMEWW.EXE to overwrite
  709.    the existing TIMESW.EXE. The Out clause allows the resulting name to differ from the source name. */
  710.     @File TIMEWW.EXE @Out TIMESW.EXE   @Group B
  711.    @EndLib
  712. @EndIf
  713.  
  714. @File CONFIG.FPW   @Group BX
  715.  
  716. @File FIRSTAID.BAT @Group BX
  717. @File TIMETOOW.EXE @Group BX
  718. @File NET.TXT      @Group BX
  719. /* We create a backup of NET.TXT called NET.TXB for use by Firstaid.bat */
  720. @File NET.TXT      @Out NET.TXB  @Group BX
  721.  
  722.  
  723. @BeginLib DISK1.RED
  724.   @File *.*        @Group BX
  725. @EndLib
  726.  
  727.  
  728.  
  729. @BeginLib TWOPEN.RED
  730.          @File TWOPEN.BMP  @Group BX
  731. @EndLib
  732.  
  733.  
  734. @BeginLib TWHLP.RED
  735.   @File *.*         @Group BX
  736. @EndLib
  737.  
  738.  
  739. /* We do a CRC check on the existing file...if it exists and the CRC matches, we don't have
  740.    to bother copying this huge file again...this speeds up the installation of maintenance
  741.    releases a lot. The Size parameter is optional and is used to approximate the amount of hard drive
  742.    space required for larger files. */
  743.  
  744. @If (@CRCFile("@OutDrive:\\@Subdir\\FOXW2600.ESL") != 37856)
  745.     @BeginLib FESL.RED
  746.          @File *.*   @Group BX              @Size 2100000
  747.     @EndLib
  748. @EndIf
  749.  
  750. @BeginLib DISK3.RED
  751.       @File *.*   @Group BX           @Size 40000
  752. @EndLib
  753.  
  754. @BeginLib TMP.RED
  755.       @File *.*                       @Size 30000
  756. @EndLib
  757.  
  758. @If (@CRCFile("@OutDrive:\\@Subdir\\PKZIP.EXE") != 12821)
  759.     @File PKZIP.EXE    @Group BX   @CRC 12821
  760. @EndIf
  761.  
  762. @If (@CRCFile("@OutDrive:\\@Subdir\\PKUNZIP.EXE") != 21993)
  763.     @File PKUNZIP.EXE  @Group BX   @CRC 21993
  764. @EndIf
  765.  
  766.  
  767.  
  768.  
  769. /* The sample files are only installed if Group W (install sample files).
  770.    Also, the @AskOverwrite clause causes a warning question whether to really overwrite
  771.    if the file already exists. This is to avoid someone upgrading accidentally overwriting
  772.    all their valuable data. */
  773.  
  774. @BeginLib SAMPLES.RED
  775. @File ASSIGN.DBF   @Out @Subdir\*.* @AskOverwrite   @Group W  @Size 15530
  776. @File ASSIGN.DBT   @Out @Subdir\*.* @AskOverwrite   @Group W
  777. @File ASSNCOUR.DBF @Out @Subdir\*.* @AskOverwrite   @Group W
  778. /* @File ASSNMAT.DBE  @Out @Subdir\*.* @AskOverwrite   @Group W
  779.    @File ASSNCOUR.DBE @Out @Subdir\*.* @AskOverwrite   @Group W  */
  780. @File ASSNMAT.DBF  @Out @Subdir\*.* @AskOverwrite   @Group W
  781. @File ASSNTIME.DBF @Out @Subdir\*.* @AskOverwrite   @Group W  @Size 15360
  782. @File CLIENTS.DBF  @Out @Subdir\*.* @AskOverwrite   @Group W  @Size 15360
  783. @File CLIENTS.DBT  @Out @Subdir\*.* @AskOverwrite   @Group W
  784. @File COURIER1.DBF @Out @Subdir\*.* @AskOverwrite   @Group W
  785. @File COURIER2.DBF @Out @Subdir\*.* @AskOverwrite   @Group W
  786. @File EMPLOYEE.DBF @Out @Subdir\*.* @AskOverwrite   @Group W  @Size 8206
  787. @File FORM.DBF     @Out @Subdir\*.* @AskOverwrite   @Group W
  788. @File FORM.DBT     @Out @Subdir\*.* @AskOverwrite   @Group W
  789. @File MILE.DBF     @Out @Subdir\*.* @AskOverwrite   @Group W
  790. @File QUERY.DBF    @Out @Subdir\*.* @AskOverwrite   @Group W
  791. @File STUDIO.DBF   @Out @Subdir\*.* @AskOverwrite   @Group W
  792. @File VENDORS.DBF  @Out @Subdir\*.* @AskOverwrite   @Group W
  793. @File VENDORS.DBT  @Out @Subdir\*.* @AskOverwrite   @Group W
  794. @File PREF.DBF     @Out @Subdir\*.* @AskOverwrite   @Group W
  795. @File MATPRICE.DBF @Out @Subdir\*.* @AskOverwrite   @Group W @Size 11264
  796. @File RATES.DBF    @Out @Subdir\*.* @AskOverwrite   @Group W
  797. @EndLib
  798.  
  799.  
  800. /* Put sample data into Samples directory */
  801. @BeginLib SAMPLES.RED
  802. @File *.*   @Out @Subdir\Samples\*.* @Overwrite
  803. @EndLib
  804.  
  805.  
  806.  
  807. /* Each setup template compressed file is expanded if the appropriate Group was selected */
  808.  
  809. @BeginLib DESIGN.RED
  810. @File PREF.DBF     @Out @Subdir\*.*    @Group D
  811. @File MATPRICE.DBF @Out @Subdir\*.*    @Group D
  812. @File RATES.DBF    @Out @Subdir\*.*    @Group D
  813. @EndLib
  814.  
  815. @BeginLib AD.RED
  816. @File PREF.DBF         @Out @Subdir\*.*    @Group E
  817. @File MATPRICE.DBF     @Out @Subdir\*.*    @Group E
  818. @File RATES.DBF        @Out @Subdir\*.*    @Group E
  819. @EndLib
  820.  
  821. @BeginLib TYPE.RED
  822. @File PREF.DBF       @Out @Subdir\*.*    @Group F
  823. @File MATPRICE.DBF   @Out @Subdir\*.*    @Group F
  824. @File RATES.DBF      @Out @Subdir\*.*    @Group F
  825. @EndLib
  826.  
  827. @BeginLib PRINT.RED
  828. @File PREF.DBF      @Out @Subdir\*.*    @Group J
  829. @File MATPRICE.DBF  @Out @Subdir\*.*    @Group J
  830. @File RATES.DBF     @Out @Subdir\*.*    @Group J
  831. @EndLib
  832.  
  833. @BeginLib QPRINT.RED
  834. @File PREF.DBF     @Out @Subdir\*.*    @Group H
  835. @File MATPRICE.DBF @Out @Subdir\*.*    @Group H
  836. @File RATES.DBF    @Out @Subdir\*.*    @Group H
  837. @EndLib
  838.  
  839. @BeginLib SPRINT.RED
  840. @File PREF.DBF     @Out @Subdir\*.*    @Group I
  841. @File MATPRICE.DBF @Out @Subdir\*.*    @Group I
  842. @File RATES.DBF    @Out @Subdir\*.*    @Group I
  843. @EndLib
  844.  
  845. @BeginLib SOFT.RED
  846. @File PREF.DBF       @Out @Subdir\*.*    @Group G
  847. @File MATPRICE.DBF   @Out @Subdir\*.*    @Group G
  848. @File RATES.DBF      @Out @Subdir\*.*    @Group G
  849. @EndLib
  850.  
  851. @BeginLib PHOTO.RED
  852. @File PREF.DBF      @Out @Subdir\*.*    @Group K
  853. @File MATPRICE.DBF  @Out @Subdir\*.*    @Group K
  854. @File RATES.DBF     @Out @Subdir\*.*    @Group K
  855. @EndLib
  856.  
  857.  
  858. /* The empty files are installed as long as no other file already exists. Hence,
  859.    existing data, setup templates, or sample data take precedence. */
  860.  
  861. @If ('W' [! @Group)
  862.  @File PREF.DBF     @NoOverwrite
  863.  @File MATPRICE.DBF @NoOverwrite
  864.  @File RATES.DBF    @NoOverwrite
  865.  @File ASSIGN.DBF   @NoOverwrite
  866.  @File ASSIGN.DBT   @NoOverwrite
  867.  @File ASSNCOUR.DBF @NoOverwrite
  868.  @File ASSNMAT.DBF  @NoOverwrite
  869.  @File ASSNTIME.DBF @NoOverwrite
  870.  @File CLIENTS.DBF  @NoOverwrite
  871.  @File CLIENTS.DBT  @NoOverwrite
  872.  @File COURIER1.DBF @NoOverwrite
  873.  @File COURIER2.DBF @NoOverwrite
  874.  @File EMPLOYEE.DBF @NoOverwrite
  875.  @File FORM.DBF     @NoOverwrite
  876.  @File FORM.DBT     @NoOverwrite
  877.  @File MILE.DBF     @NoOverwrite
  878.  @File QUERY.DBF    @NoOverwrite
  879.  @File STUDIO.DBF   @NoOverwrite
  880.  @File VENDORS.DBF  @NoOverwrite
  881.  @File VENDORS.DBT  @NoOverwrite
  882. @EndIf
  883.  @File PHASES.DBF   @NoOverwrite
  884.  @File USERTEXT.DBF @NoOverwrite
  885.  @File USERTEXT.DBT @NoOverwrite  @Size 17971
  886.  @File CALEVENT.DBF @NoOverwrite  @Size 18000
  887.  
  888.  
  889. /* Put empty databases in Original directory (all *.db? except multi.dbf) */
  890.  @File PREF.DBF     @Out @Subdir\Original\*.* @Overwrite
  891.  @File MATPRICE.DBF @Out @Subdir\Original\*.* @Overwrite
  892.  @File RATES.DBF    @Out @Subdir\Original\*.* @Overwrite
  893.  @File ASSIGN.DBF   @Out @Subdir\Original\*.* @Overwrite
  894.  @File ASSIGN.DBT   @Out @Subdir\Original\*.* @Overwrite
  895.  @File ASSNCOUR.DBF @Out @Subdir\Original\*.* @Overwrite
  896.  @File ASSNMAT.DBF  @Out @Subdir\Original\*.* @Overwrite
  897.  @File ASSNTIME.DBF @Out @Subdir\Original\*.* @Overwrite
  898.  @File CLIENTS.DBF  @Out @Subdir\Original\*.* @Overwrite
  899.  @File CLIENTS.DBT  @Out @Subdir\Original\*.* @Overwrite
  900.  @File COURIER1.DBF @Out @Subdir\Original\*.* @Overwrite
  901.  @File COURIER2.DBF @Out @Subdir\Original\*.* @Overwrite
  902.  @File EMPLOYEE.DBF @Out @Subdir\Original\*.* @Overwrite
  903.  @File FORM.DBF     @Out @Subdir\Original\*.* @Overwrite
  904.  @File FORM.DBT     @Out @Subdir\Original\*.* @Overwrite
  905.  @File MILE.DBF     @Out @Subdir\Original\*.* @Overwrite
  906.  @File QUERY.DBF    @Out @Subdir\Original\*.* @Overwrite
  907.  @File STUDIO.DBF   @Out @Subdir\Original\*.* @Overwrite
  908.  @File VENDORS.DBF  @Out @Subdir\Original\*.* @Overwrite
  909.  @File VENDORS.DBT  @Out @Subdir\Original\*.* @Overwrite
  910.  @File PHASES.DBF   @Out @Subdir\Original\*.* @Overwrite
  911.  @File USERTEXT.DBF @Out @Subdir\Original\*.* @Overwrite
  912.  @File USERTEXT.DBT @Out @Subdir\Original\*.* @Overwrite
  913.  @File CALEVENT.DBF @Out @Subdir\Original\*.* @Overwrite
  914.  
  915.  
  916. /* Since empty .DBEs are identical to empty .DBFs, we copy them
  917.    over rather than having to put DBEs on distribution disk. */
  918.  @File ASSNCOUR.DBF @NoOverwrite  @Out ASSNCOUR.DBE
  919.  @File ASSNMAT.DBF  @NoOverwrite  @Out ASSNMAT.DBE
  920.  @File ASSNTIME.DBF @NoOverwrite  @Out ASSNTIME.DBE
  921.  
  922.  @File R.EXE        @Overwrite
  923.  @File TWOPENBW.BMP @Overwrite
  924.  @File REGISTER.TXT @Overwrite
  925.  @File WORKBOOK.EXE @Overwrite
  926.  
  927. @EndDisk
  928.  
  929. @If ('X' [= @Group)
  930.     @Chain("TimeSave for Windows","INSTALW4.DAT")
  931. @EndIf
  932.  
  933. /* SetAutoexec offers to change autoexec to add TimeWise directory to the path */
  934. @SetAutoexec
  935.     @AskOverwrite
  936.     @Path = "@OutDrive:\\@Subdir"
  937. @EndAutoexec
  938.  
  939. /*
  940. @GetString @Launch
  941.     If you will be launching @Name from Windows or using the DOS Shell
  942.     you will probably need additional files. If you claim to be
  943.     using either of these tools now, INSTALL will recommend installing more
  944.     FILES in the CONFIG.SYS file than INSTALL otherwise would. The only
  945.     possible disadvantage to this is that additional FILES will consume up
  946.     to 10K more memory (RAM).
  947.  
  948.     @Prompt = "Are you using Windows or the DOS Shell?"
  949.     @Default = "No"
  950. @EndString
  951. */
  952.  
  953. @Display
  954.     @Cls
  955.     --------------------------------------------------------------------
  956.     ABOUT THE AUTOEXEC.BAT FILE
  957.     --------------------------------------------------------------------
  958.  
  959.     Soon you will be asked if it is OK to modify your AUTOEXEC.BAT file.
  960.  
  961.     The AUTOEXEC.BAT file's PATH command in the would be altered to
  962.     ensure that @Name can be launched at any time.
  963.  
  964.     You may not wish to let INSTALL modify the AUTOEXEC.BAT file. Perhaps
  965.     you have a system administrator who prefers to modify these files
  966.     by hand. If you choose NOT to have it modified, INSTALL will display
  967.     the changes to be made manually. Please note these changes and
  968.     be sure that someone makes them.
  969.  
  970.                     @pause
  971.  
  972. @EndDisplay
  973.  
  974. @Display
  975.     @Cls
  976.     --------------------------------------------------------------------
  977.     ABOUT THE CONFIG.SYS FILE
  978.     --------------------------------------------------------------------
  979.  
  980.     You will also be asked if it is OK to modify your CONFIG.SYS file.
  981.     The CONFIG.SYS file must request 70 or more "file handles" for
  982.     @Name to launch properly. INSTALL can increase the number of file
  983.     handles, if necessary, by adding or changing the FILES command.
  984.  
  985.     You may not want INSTALL to modify the CONFIG.SYS file. Perhaps you
  986.     know that you require even more than 70 files, due to the needs
  987.     of a network server. If you choose NOT to modify, the changes which
  988.     must be made manually are shown. Please note these changes and
  989.     ensure someone makes them.
  990.  
  991.     If CONFIG.SYS is changed, you may have to restart the computer before
  992.     launching @Name for the first time.
  993.  
  994.                     @pause
  995. @EndDisplay
  996.  
  997. @SetConfig
  998.     @AskOverwrite
  999.  
  1000.  
  1001. /*        @If (@Modify == 'Yes' | Launch == 'Yes')
  1002.         @Overwrite
  1003.     The CONFIG.SYS file will be modified, if necessary, to launch @Name.
  1004.         @Else
  1005.         @DiskProto
  1006.  
  1007.       @EndIf
  1008.  
  1009.     @ScreenProto   */
  1010.  
  1011. /*
  1012.     @If (@Launch =  "Yes" | @Launch ="Y")
  1013.         @Files = 80
  1014.         @Display
  1015.     The CONFIG.SYS file has been modified or suggested to include
  1016.     80 file handles.
  1017.         @EndDisplay
  1018.  
  1019.         @Else
  1020.         @Files = 70
  1021.         @Display
  1022.     The CONFIG.SYS file has been modified or suggested to include
  1023.     70 file handles.
  1024.         @EndDisplay
  1025.     @EndIf          */
  1026.         @Files = 70
  1027.  
  1028. @EndConfig
  1029.  
  1030.  
  1031.  
  1032. @Finish
  1033.  
  1034. @Cls
  1035. /*
  1036.     The following command is used to create the wINSTALL group and
  1037.     add the wINSTALL item to the Windows Program Manager.
  1038. */
  1039.  
  1040. @ProgramManager("[CreateGroup(TimeWise)][AddItem(@Outdrive:\\@Subdir\\TIMEWW.exe, @Name, @OutDrive:\\@SubDir\\timewise.ico, 0)][AddItem(@Outdrive:\\@Subdir\\FIRSTAID.bat,First Aid, @OutDrive:\\@SubDir\\firstaid.ico, 0)][AddItem(@Outdrive:\\@Subdir\\TIMETOOW.exe,TimeTool, @OutDrive:\\@SubDir\\timetool.ico, 0)][AddItem(@Outdrive:\\@Subdir\\TWHELP.hlp, TimeWise Help, @OutDrive:\\@SubDir\\help.ico, 0)][ShowGroup(TimeWise, 2)]")
  1041.  
  1042. /*
  1043. @If (@Exists "@OutDrive:\\@Subdir\\TIMESW.exe")
  1044.   @ProgramManager("[AddItem(@Outdrive:\\@Subdir\\TIMESW.exe,TimeSave,  @Outdrive:\\@Subdir\\timesave.ico, 0)][ShowGroup(TimeWise, 2)]")
  1045. @EndIf
  1046. */
  1047.  
  1048.  
  1049. /* change current drive and directory to where TimeWise is installed */
  1050.     @ChDrive @OutDrive
  1051.     @ChDir "@Subdir"
  1052.  
  1053.  
  1054. /* delete temporary files from previous conversions and files from previous versions
  1055.    no longer needed. The ones specifying directory Art are really ancient from when
  1056.    you had no choice but to install into a directory of that name. */
  1057.   @Delete("@OutDrive:\\@SubDir\\text.txt") @Delete("@OutDrive:\\@SubDir\\nettext.txt")
  1058.   /* @Delete("@OutDrive:\\@Subdir\\*.nta") @Delete("@OutDrive:\\@SubDir\\*.nte") */
  1059.   @Delete("@OutDrive:\\@SubDir\\*.idx")    @Delete("@OutDrive:\\@SubDir\\proapi16.exe")
  1060.   @Delete("@OutDrive:\\@SubDir\\install.exe")
  1061.   @Delete("@OutDrive:\\@SubDir\\help.txt")   @Delete("@OutDrive:\\@SubDir\\genhelp.txt")
  1062.   @Delete("@OutDrive:\\@SubDir\\custom.txt")   @Delete("@OutDrive:\\@SubDir\\foolish.txt")
  1063.   @Delete("@OutDrive:\\@SubDir\\invoice.txt")
  1064.   @Delete("@OutDrive:\\@SubDir\\arthelp.*")    @Delete("@OutDrive:\\@SubDir\\artback.bat")
  1065.   @Delete("@OutDrive:\\@SubDir\\artrest.bat")  @Delete("@OutDrive:\\@SubDir\\foxpro*.es?")
  1066.   @Delete("@OutDrive:\\@SubDir\\twuser.fpt")
  1067.   @Delete("@OutDrive:\\art.bat")
  1068.  
  1069.  
  1070. /* Set read only attributes on for all those files who need them on a network install.
  1071.    We put them on for single user installations too because it can't hurt and protects from
  1072.    accidental removal. Also sometimes we can't necessarily detect a network install. */
  1073.     @ChMod("@OutDrive:\\@SubDir\\INTRO1.OVL","r+")
  1074.        @ChMod("@OutDrive:\\@SubDir\\*.EXE","r+")
  1075.        @ChMod("@OutDrive:\\@SubDir\\*.BAT","r+")
  1076.        @ChMod("@OutDrive:\\@SubDir\\*.ES?","r+")
  1077.        @ChMod("@OutDrive:\\@SubDir\\twhelp.*","r+")
  1078.        @ChMod("@OutDrive:\\@SubDir\\config.fp*","r+")
  1079.        @ChMod("@OutDrive:\\@SubDir\\*.bmp","r+")
  1080.        @ChMod("@OutDrive:\\@SubDir\\*.fll","r+")
  1081.  
  1082.  
  1083.  
  1084.  
  1085. /* If a Network Installation was specified, files that must be readonly on network, but
  1086.    trouble if set readonly on non network are installed. We don't readonly twuser.* unless
  1087.    we have to because then single user installations can't put notes in the Calendar.
  1088.    We don't readonly *.hlp unless we have to because then single user installations can't
  1089.    annotate their hlp file. */
  1090. @If ('T' [= @Group)
  1091.     @ChMod("@OutDrive:\\@SubDir\\twuser.*","r+")
  1092.     @ChMod("@OutDrive:\\@SubDir\\*.hlp","r+")
  1093. @EndIf
  1094. /* Netbios detection is also a cue that we are dealing with a network. */
  1095. @If (@NetBIOS !=0)
  1096.     @ChMod("@OutDrive:\\@SubDir\\twuser.*","r+")
  1097.     @ChMod("@OutDrive:\\@SubDir\\*.hlp","r+")
  1098. @EndIf
  1099. @Cls
  1100.     --------------------------------------------------------------------
  1101.     INSTALLATION SUCCESSFUL
  1102.     --------------------------------------------------------------------
  1103. /*      @If (@RAMAvail < 425)
  1104.     The installation procedure has completed successfully.
  1105.  
  1106.        However, there is not enough RAM available for @Name to launch
  1107.        properly. Reduce your RAM use by removing TSR programs named in
  1108.        your AUTOEXEC.BAT or CONFIG.SYS files before attempting to launch
  1109.        @Name.
  1110.                     @pause
  1111.     @Abort
  1112.  
  1113.     @ElseIf (@RAMAvail < 475)  */
  1114.     The installation procedure has completed successfully.
  1115.     You can now leave INSTALL and try to launch @Name.
  1116.  
  1117.     If the CONFIG.SYS file was modified or requires modification, you may
  1118.     have to restart the computer before using @Name.
  1119.  
  1120.                     @pause
  1121.     @Reboot("Restarting your machine.",1)
  1122.  
  1123.  
  1124. @EndFinish
  1125.